package com.order.Client.impl;

import com.order.Client.StorageClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import spring.cloud.Utils.R;

/**
 * @author cyt
 * @create 2020-06-07 17:36
 */
@Slf4j
@Component
public class StorageImpl implements StorageClient {

    @Override
    public R decStorage(Integer productId, Integer count) {
        log.info(productId + "- > " + count);
        log.info("库存失败回调");
        return R.error();
    }
}
